package com.student.work.service;

import com.student.work.common.BaseResponse;
import com.student.work.model.UserProfile;
import com.student.work.model.UserRegisterInfo;

import java.util.Map;

/**
 * @date 2020/2/22 13:20
 */
public interface UserService {

    BaseResponse<Map<String, Object>> signUp(UserRegisterInfo info);

    BaseResponse<Map<String, Object>> login(UserRegisterInfo info);

    BaseResponse<Map<String, Object>> createProfile(UserProfile profile);

    BaseResponse<UserProfile> getProfile(Long userId);

    BaseResponse<Map<String, Object>> userList(int pageNum, int pageSize);

    BaseResponse<Map<String, Object>> deleteUser(UserRegisterInfo info);
}
